package com.xian.im.modules.im.service.impl;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.xian.im.modules.im.dao.UserDao;
import com.xian.im.modules.im.entity.UserEntity;
import com.xian.im.modules.im.service.UserService;

@Slf4j
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService {

    /**
     * 根据IM 账号 查询用户
     *
     * @param account
     * @return
     */
    @Override
    public UserEntity getEntityByAccount(String account) {
        return this.lambdaQuery().eq(UserEntity::getAccount,account).one();
    }
}